<style type="text/css">
    .sm-st {
        background: #fff;
        padding: 20px;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        margin-bottom: 20px;
    }

    .sm-st-icon {
        width: 60px;
        height: 60px;
        display: inline-block;
        line-height: 60px;
        text-align: center;
        font-size: 30px;
        background: #eee;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        float: left;
        margin-right: 10px;
        color: #fff;
    }

    .sm-st-info {
        padding-top: 2px;
    }

    .sm-st-info span {
        display: block;
        font-size: 24px;
        font-weight: 600;
    }

    .orange {
        background: #fa8564 !important;
    }

    .tar {
        background: #45cf95 !important;
    }

    .sm-st .green {
        background: #86ba41 !important;
    }

    .pink {
        background: #AC75F0 !important;
    }

    .yellow-b {
        background: #fdd752 !important;
    }

    .stat-elem {

        background-color: #fff;
        padding: 18px;
        border-radius: 40px;

    }

    .stat-info {
        text-align: center;
        background-color: #fff;
        border-radius: 5px;
        margin-top: -5px;
        padding: 8px;
        -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        font-style: italic;
    }

    .stat-icon {
        text-align: center;
        margin-bottom: 5px;
    }

    .st-red {
        background-color: #F05050;
    }

    .st-green {
        background-color: #27C24C;
    }

    .st-violet {
        background-color: #7266ba;
    }

    .st-blue {
        background-color: #23b7e5;
    }

    .stats .stat-icon {
        color: #28bb9c;
        display: inline-block;
        font-size: 26px;
        text-align: center;
        vertical-align: middle;
        width: 50px;
        float: left;
    }

    .stat {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }

    .stat .value {
        font-size: 20px;
        line-height: 24px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 500;
    }

    .stat .name {
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 5px 0;
    }

    .stat.lg .value {
        font-size: 26px;
        line-height: 28px;
    }

    .stat-col {
        margin: 0 0 10px 0;
    }

    .stat.lg .name {
        font-size: 16px;
    }

    .stat-col .progress {
        height: 2px;
    }

    .stat-col .progress-bar {
        line-height: 2px;
        height: 2px;
    }

    .item {
        padding: 30px 0;
    }


    #statistics .panel {
        min-height: 130px;
    }

    #statistics .panel h5 {
        font-size: 14px;
    }

    .form-group {
        white-space: unset !important;
        height: 60px;
    }

    .bg-blue-wt {
        background: #fff !important;
        box-shadow: 0px 4px 8px 2px rgba(0,0,0,0.05);
        color: #111;
    }
</style>
<div class="panel panel-default panel-intro">


    

    <div class="row">
        <div class="col-lg-12">
            <div>

                <form id="edit-form" class="form-commonsearch" role="form" data-toggle="validator" method="POST"
                    action="">
                    <div style="border-radius:2px;margin-bottom:10px;padding:15px 20px;">
                        {if $auth->acct_id==0}
                        <div class="col-xs-12 col-sm-6 col-md-3">

                            <div class="form-group">

                                <label class="control-label ">{:__('子账户')}:</label>
                                <div class="">
                                    <input id="c-admin_id" data-rule="" data-source="auth/admin/selectgroup"
                                        class="form-control selectpage"  data-field="nickname"  name="acct_id" data-primary-key="acct_id" type="text"
                                        value="{$acct_id??''}" >
                                </div>
                            </div>
                        </div>
                        {/if}

                        <div class="col-xs-12 col-sm-6 col-md-3">
                            <div class="form-group">
                                <label class="control-label">时间</label>
                                <div>
                                    <input type="text" id="i-year" class="form-control datetimerange" name="time_range" placeholder="指定日期"  data-locale='{"format":"YYYY-MM-DD"}'  value="{$time_range??''}" autocomplete="false"/>
                                </div>
                            </div>
                        </div>
                    </div>


                    

                </form>

            </div>
        </div>

    </div>

  


    <div class="row" style="margin-top:15px;" id="statistics">

        <div class="col-lg-12">
        </div>
        <div class="col-xs-6 col-md-3">
            <div class="panel bg-blue-gradient no-border">
                <div class="panel-body">
                    <div class="panel-title">
                        <!-- <span class="label label-primary pull-right">{:__('Real time')}</span> -->
                        <h5>{:__('合伙人数量')}</h5>
                    </div>
                    <div class="panel-content">
                        <div class="row">
                            <div class="col-md-12">
                                <h1 class="no-margins">{$users}</h1>
                                <div class="font-bold"><i class="fa fa-database"></i>
                                    <small>{:__('数量')}</small>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xs-6 col-md-3">
            <div class="panel bg-teal-gradient no-border">
                <div class="panel-body">
                    <div class="ibox-title">
                        <!-- <span class="label label-primary pull-right">{:__('Real time')}</span> -->
                        <h5>{:__('客户数量')}</h5>
                    </div>
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-md-12">
                                <h1 class="no-margins">{$custom}</h1>
                                <div class="font-bold"><i class="fa fa-database"></i>
                                    <small>{:__('数量')}</small>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-xs-6 col-md-3">
            <div class="panel bg-purple-gradient no-border">
                <div class="panel-body">
                    <div class="ibox-title">
                        <!-- <span class="label label-primary pull-right">{:__('Real time')}</span> -->
                        <h5>{:__('销售订单')}</h5>
                    </div>
                    <div class="ibox-content">

                        <div class="row">
                            <div class="col-md-12">
                                <h1 class="no-margins">{$csale}</h1>
                                <div class="font-bold"><i class="fa fa-database"></i>
                                    <small>{:__('数量')}</small>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xs-6 col-md-3">
            <div class="panel bg-green-gradient no-border">
                <div class="panel-body">
                    <div class="ibox-title">
                        <!-- <span class="label label-primary pull-right">{:__('Real time')}</span> -->
                        <h5>{:__('销售金额(营业额)')}</h5>
                    </div>
                    <div class="ibox-content">

                        <div class="row">
                            <div class="col-md-6">
                                <h1 class="no-margins">{$sale}</h1>
                                <div class="font-bold"><i class="fa fa-database"></i>

                                    <small>{:__('总金额')}</small>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xs-6 col-md-3">
            <div class="panel bg-green-gradient no-border">
                <div class="panel-body">
                    <div class="ibox-title">
                        <!-- <span class="label label-primary pull-right">{:__('Real time')}</span> -->
                        <h5>{:__('利润')}</h5>
                    </div>
                    <div class="ibox-content">

                        <div class="row">
                            <div class="col-md-6">
                                <h1 class="no-margins">{$profit}</h1>
                                <div class="font-bold"><i class="fa fa-database"></i>

                                    <small>{:__('总金额')}</small>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
        {if $admin['acct_id']==0}
        <div class="col-xs-6 col-md-3">
            <div class="panel bg-green-gradient no-border">
                <div class="panel-body">
                    <div class="ibox-title">
                        <!-- <span class="label label-primary pull-right">{:__('Real time')}</span> -->
                        <h5>{:__('销售分佣')}</h5>
                    </div>
                    <div class="ibox-content">

                        <div class="row">
                            <div class="col-md-6">
                                <h1 class="no-margins">{$commission}</h1>
                                <div class="font-bold"><i class="fa fa-database"></i>

                                    <small>{:__('总金额')}</small>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
        {/if}
    </div>

 
</div>